package com.ray.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;


@Data
//表名映射
@Document(collection = "rayc")
public class Student {
    @Id
    private String id;
    //字段映射
//    @Field(value = "student_age")
//    private Integer age;
    @Field(value = "name")
    private String name;
}
